package cn.oms.pms.provider.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author AllenChen曾晨
 * @since 2022-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("patient_appointment_record")
@ApiModel(value="PatientAppointmentRecord对象", description="")
public class PatientAppointmentRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "预约ID（新增生成）（UUID）（用于关联入院登记）")
    @TableField("APPOINTMENT_ID")
    private String appointmentId;

    @ApiModelProperty(value = "患者信息ID（对应基本信息表）（ALL4452）")
    @TableField("PATIENT_ID")
    private String patientId;

    @ApiModelProperty(value = "预约医院CODE")
    @TableField("HOSPITAL_CODE")
    private String hospitalCode;

    @ApiModelProperty(value = "预约中心CODE")
    @TableField("AREA_CODE")
    private String areaCode;

    @ApiModelProperty(value = "专科CODE")
    @TableField("SPECIALTY_CODE")
    private String specialtyCode;

    @ApiModelProperty(value = "预约类型（0门诊 1住院）")
    @TableField("APPOINTMENT_TYPE")
    private Integer appointmentType;

    @ApiModelProperty(value = "预约入院时间（预约合适时间段入院）")
    @TableField("APPOINTMENT_START_TIME")
    private LocalDate appointmentStartTime;

    @ApiModelProperty(value = "预约结束时间（出院时间）")
    @TableField("APPOINTMENT_END_TIME")
    private LocalDate appointmentEndTime;

    @ApiModelProperty(value = "持续时间（大概就诊时间）")
    @TableField("DURATION_TIME")
    private String durationTime;

    @ApiModelProperty(value = "症状简介")
    @TableField("SYMPTOMS_INTRODUCTION")
    private String symptomsIntroduction;

    @ApiModelProperty(value = "预约成功标记(已登记)")
    @TableField("APPOINTMENT_FLAG")
    private Integer appointmentFlag;

    @ApiModelProperty(value = "预约号（OP20220417191904001）")
    @TableField("APPOINTMENT_NO")
    private String appointmentNo;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private LocalDate createTime;

    @ApiModelProperty(value = "删除标记")
    @TableField("DEL_FLAG")
    private Integer delFlag;


}
